package com.chb.interpreter;

import java.util.HashMap;
import java.util.Map;

/**
 * @author chihb
 * @create-time 2024/10/24 20:58
 * @description
 */
public class Context {
    private Map<Variable, Integer> map=new HashMap<>();

    public void assign(Variable variable,Integer value){
        map.put(variable,value);
    }
    public int getValue(Variable variable){
        return map.get(variable);
    }
}
